home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 146
/
146.d81
/
b.fs printer
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
78 lines
10 print"[147]":poke53280,0:poke53281,0:gosub60000
20 poke51,0:poke52,110:poke55,0:poke56,110:clr:tem=36864:ml=32768
30 sb=53265:dv=peek(186):ifdv<8thendv=8
40 sys57812"fvtoolbox 9000",dv,0:poke780,0:poke781,0:poke782,144:sys65493
50 system+30,"fs printer/ml",dv,32768
60 vl$=" "
70 pk$="press any key to continue"
80 :
90 pokesb,peek(sb)and239:print"[147]"chr$(142)chr$(8)
100 print"[129]"tab(9)vl$:printtab(9)"[158] font studio printer ":printtab(9)"[129]"vl$
110 system+18,216:pokesb,peek(sb)or16:pd=0
120 :
130 system+21,216:ifpdthen170
140 gosub380:pd=1:iffl=1then140
150 ifflthenpd=0:goto130
160 :
170 sysml
180 system+15,16,23,11,15,160,7:system+15,9,30,16,19,160,7:print"[158]";
190 fori=0to3:system+24,18,12+i,str$(8+i):next
200 system+24,14,17,"select drive ":print:printtab(13)"for font disks"
210 system+48,12,18,21,4,7,7,0
220 fdv=f%+7:close2:open2,fdv,2:close2
230 ifstthen210
240 system+21,216:system,"$:f.*",fdv,53248,10,8,8,8,3:iff$=""then490
250 ifval(e$)=0then270
260 gosub460:goto200
270 poke862,0:system+21,216
280 system+30,f$,fdv,49152
290 ifval(e$)=0then310
300 gosub460:goto130
310 system+24,6,10,"check printer & paper supply":print:print
320 printtab(7)pk$:gosub440
330 poke863,0
340 open4,4,0:print#4:print#4
350 sysml+3
360 open4,4,0:fori=1to2:print#4:next:close4:goto130
370 :
380 fl=0:system+30,"pd.f v",dv,826:ifval(e$)=62then410
390 ifval(e$)=0thenreturn
400 gosub460:system+21,216:return
410 fl=2:system+24,8,10,"no printer driver found":print
420 printtab(12)"try another disk":printtab(7)""pk$
430 :
440 poke198,0:wait198,1:poke198,0:return:
450 :
460 tb=20-len(e$)/2:system+24,tb,14,"":printe$
470 printtab(7)"press any key to continue":fl=1:goto440
480 :
490 system+24,6,21,"[154]no font files found/selected":print
500 printtab(10)"do you want to quit?"
510 printtab(18)"y/n";:system+45,"yn":iff%=2then130
520 goto40000
530 :
10000 open15,dv,15,"s0:f/s printer":close15:save"f/s printer",dv:end
10010 :
40000 fori=0to21:poke828+i,8+i:next
40010 ifdv<8ordv>29ordv=8then40030
40020 a=peek(828):b=peek(828+dv-8):poke828,b:poke828+dv-8,a
40030 a$="hello connect":forj=8to29:i=peek(828+j-8):ifi=14thennext
40040 close2:open2,i,2:close2:ifstthen40060
40050 close15:open15,i,15,"r0:"+a$+"="+a$:input#15,er:close15:ifer=63then40070
40060 next:print"[147]":poke53272,23:poke186,8:end
40070 q$=chr$(34):poke646,peek(53281):print"[147]":poke53272,23
40080 print"[147]p[207]2048,0:p[207]44,8:p[207]43,1:p[207]56,160:p[207]55,0:clr:l[207]"q$a$q$","i
40090 print"run:":poke631,13:poke632,13:poke198,2:end
40100 :
60000 print"[147]":z$=" [152] ":poke214,10:print
60010 print" [155][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184]":fori=0to9:printz$:next
60020 print" [151][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][152]"
60030 z$(0)="[198] [207] [206] [212] [211] [212] [213] [196] [201] [207] [208] [210] [201] [206] [212] [197] [210]" :z$(1)="by [194]ob [205]arkland"
60040 z$(2)="([195]) 1996 by [202] & [198] [208]ublishing, [201]nc."+chr$(13)
60050 z$(3)="[212]his program is the copyrighted work
60060 z$(4)[178]"of mid$ & asc (NULL)ublishing, right$nc. right$t is not"
60070 z$(5)[178]"shareware or in the public domain."
60080 z$(6)[178]"1-800-594-3370 or 1-318-221-8718
60090 poke214,12:print
60100 fori=0to6:printtab(20-(len(z$(i))/2))""z$(i):next:return